const BNB = artifacts.require("BNB");
const shelljs = require("shelljs");
const fs = require('fs');
contract("BNB", function (accounts) {
    it('所有账户信息', async function () {
        console.log(accounts);
    });
    it('合约实例 ', async function () {
        let instance = await BNB.deployed();
        shelljs.echo(instance).to('./instance/instance.log');
        // fs.writeFileSync('./instance/abi.txt',JSON.stringify(instance.abi));
        shelljs.echo(JSON.stringify(instance.abi)).to('./instance/abi.txt');
        // shelljs.echo(instance.address).to('./instance/address.txt');
        console.log('合约地址', instance.address);
    });
    it('账户余额 ', async function () {
        let balance = await web3.eth.getBalance(accounts[0]);
        console.log(balance);
    });
});